export default function ({ isServer, req, redirect, route }) {
    let isMobile = (ua) => {
        return !!ua.match(/AppleWebKit.*Mobile.*/)
    }
    let userAgent = req ? req.headers['user-agent'] : navigator.userAgent || ''

    console.log(isMobile(userAgent))
    if(isMobile(userAgent)){
        redirect('https://m.lilikq.com/');
    };
    //return isMobile(userAgent) ? '' : redirect(pcOrigin + route.fullPath)
    // 使用redirect 重定向到外链需要加上前缀:http / https
}